<div>
    <ng-content select="#tableOperations">
    </ng-content>
    <span nz-dropdown [nzDropdownMenu]="menu"
        [nzPlacement]="'bottomRight'" class="table-col-filter" *ngIf="isColFilter">
        <i nz-icon nzType="filter" nzTheme="fill"></i>
    </span>
</div>
<nz-table class="full-height2-border" 
    nzBordered
    [nzFrontPagination]="false"
    [nzShowQuickJumper]="isShowQuickJumper"
    [nzHideOnSinglePage]="isHideOnSinglePage"
    [nzData]="listData" 
    [nzLoading]="loadTable" 
    [(nzPageIndex)]="ppageIndex" 
    [(nzPageSize)]="ppageSize" 
    [nzTotal]="total" 
    [nzShowTotal]="totalTemplate"
    (nzQueryParams)="nzQueryParams($event)" 
    [nzSimple]="false" 
    [nzShowPagination]="isShowPagination" 
    nzTableLayout="fixed"
    nzPaginationType="small"
    nzShowSizeChanger 
    [nzScroll]="nzScroll || {x:'calc(100%)',y:'calc(100% - 28px)'}"
    [nzTemplateMode]="tplSwitch"
    [nzPageSizeOptions]="sizeOptions()"
    (nzCurrentPageDataChange)="tableDataChange($event)"
    [nzFooter]="footerTpl?footerTpl:null"
    [nzWidthConfig]="nzWidthConfig"
    >
    <thead *ngIf="!multiLevelHead">
        <tr>
            <ng-container *ngIf="isCheckTable">
                <th
                [(nzChecked)]="tableChecked"
                [nzIndeterminate]="indeterminate"
                (nzCheckedChange)="onAllChecked($event)"
                nzWidth="40px"
                nzLeft
              ></th>
            </ng-container>
            <ng-container *ngFor="let item of tHeadData;">
                <th [nzWidth]="item.nzWidth"
                    [nzLeft]="item.nzLeft?true:false"
                    [nzRight]="item.nzRight?true:false"
                    nz-resizable
                    nzBounds="window"
                    nzPreview
                    [class.pointer-event-none]="resizing"
                    (nzResizeStart)="onResizeStart($event, item.prop)"
                    (nzResizeEnd)="onResize($event, item.prop)"
                    [nzShowSort]="item.isSort"
                    [nzSortFn]="true"
                    [nzColumnKey]="item.prop"
                    nzEllipsis
                >
                    <span [innerHtml]="item.label | toHtml" [ngStyle]="{'color': item.isEdit ? 'blue':''}"></span>
                    <nz-resize-handle nzDirection="right">
                        <div class="resize-trigger"></div>
                    </nz-resize-handle>
                </th>
            </ng-container>
            <ng-container *ngIf="isHasAction&&isHasAction.length!==0">
                <th nzWidth="150px" nzRight>操作</th>
            </ng-container>
        </tr>
    </thead>
    <thead *ngIf="multiLevelHead">
        <tr *ngFor="let items of tHeadData;">
            <!-- <ng-container *ngIf="isCheckTable">
                <th
                [(nzChecked)]="tableChecked"
                [nzIndeterminate]="indeterminate"
                (nzCheckedChange)="onAllChecked($event)"
                nzWidth="40px"
                nzLeft
              ></th>
            </ng-container> -->
            <ng-container *ngFor="let item of items">
                <th 
                    [nzLeft]="item.nzLeft?true:false"
                    nzEllipsis
                    [nzShowSort]="item.isSort&&item.colspan==1"
                    [nzSortFn]="true"
                    [nzColumnKey]="item.prop"
                    [rowspan]="item.rowspan"
                    [colspan]="item.colspan"
                    nz-resizable
                    nzBounds="window"
                    nzPreview
                    [class.pointer-event-none]="resizing"
                    (nzResizeStart)="onResizeStart($event, item.prop)"
                    (nzResizeEnd)="onMultiLevelHeadTableResize($event, item.prop)"
                >
                    <span [innerHtml]="item.label | toHtml"></span>
                </th>
            </ng-container>
            <!-- <ng-container *ngIf="isHasAction&&isHasAction.length!==0">
                <th nzWidth="150px" nzRight>操作</th>
            </ng-container> -->
        </tr>
    </thead>
    <tbody *ngIf="!multiLevelHead">
        <tr *ngFor="let data of listData;let i=index" class="editable-row" (click)="rowClick(data,i)" 
        [class]="{'table-row-check': i===selectedIndex }">
            <ng-container *ngIf="isCheckTable">
                <td [nzChecked]="has(setOfCheckedId,data)" (nzCheckedChange)="onItemChecked(data, $event)" nzLeft></td>
            </ng-container>
            <ng-container *ngFor="let item of tHeadData;">
                <ng-container *ngIf="item.prop==='xh'">
                    <td nzAlign="center" [nzLeft]="item.nzLeft?true:false">{{ i + 1 }}</td>
                </ng-container>
                <ng-container *ngIf="item.prop!=='xh'">
                    <ng-container *ngIf="item.isLink && !item.linkColor">
                        <ng-container *ngIf="item.template">
                            <ng-container *ngIf="item.template=='config'">
                                <td [nzAlign]="item?.nzAlign" nzEllipsis [title]="item.type==='text'?(getDeepObj(data, item.prop)?getDeepObj(data, item.prop):''):''" [nzLeft]="item.nzLeft?true:false" [nzRight]="item.nzRight?true:false">
                                    <a (click)="jumpTo(data,item.prop)"  appFontHover stopPropagation>{{ getDeepObj(data, item.prop) | enum:[item.template,config[item?.configData]] }}</a>
                                </td>
                            </ng-container>
                            <ng-container *ngIf="item.template!='config'">
                                <td [nzAlign]="item?.nzAlign" nzEllipsis [title]="item.type==='text'?(getDeepObj(data, item.prop)?getDeepObj(data, item.prop):''):''" [nzLeft]="item.nzLeft?true:false" [nzRight]="item.nzRight?true:false">
                                    <a (click)="jumpTo(data,item.prop)" appFontHover stopPropagation>{{ getDeepObj(data, item.prop) | enum:[item.template] }}</a>
                                </td>
                            </ng-container>
                        </ng-container>
                        <ng-container *ngIf="item.type">
                            <td [nzAlign]="item?.nzAlign" nzEllipsis [title]="item.type==='text'?(getDeepObj(data, item.prop)?getDeepObj(data, item.prop):''):''" [nzLeft]="item.nzLeft?true:false" [nzRight]="item.nzRight?true:false">
                                <ng-container *ngIf="item.fontIcon">
                                    <i nz-icon [nzType]="item.fontIcon==true?'folder':item.fontIcon" nzTheme="fill" style="color:#f1ea7a; margin-right:2px"></i>
                                </ng-container>
                                <a (click)="jumpTo(data,item.prop)" appFontHover stopPropagation>{{ getDeepObj(data, item.prop) | filter:[item.type,item?.dateFormat]}}</a>
                                <ng-container *ngIf="item.hasEnclosure&&data.EnclosureCount>0||item.isQJ&&data.Remark">
                                    <i nz-icon style="margin-left: 5px;font-weight: bold;cursor: pointer;" title="打开附件列表" (click)="openEnclo(data)" stopPropagation>
                                        <svg t="1661315776566" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2382" width="14" height="14"><path d="M516.373333 375.978667l136.576-136.576a147.797333 147.797333 0 0 1 208.853334-0.021334 147.690667 147.690667 0 0 1-0.042667 208.832l-204.8 204.778667v0.021333l-153.621333 153.6c-85.973333 85.973333-225.28 85.973333-311.253334 0.021334-85.994667-85.973333-85.973333-225.216 0.149334-311.36L431.146667 256.362667a21.333333 21.333333 0 0 0-30.165334-30.165334L162.069333 465.066667c-102.805333 102.826667-102.826667 269.056-0.149333 371.733333 102.613333 102.613333 268.970667 102.613333 371.584 0l153.6-153.642667h0.021333l0.021334-0.021333 204.778666-204.778667c74.325333-74.325333 74.346667-194.858667 0.021334-269.184-74.24-74.24-194.88-74.24-269.162667 0.042667l-136.576 136.554667-187.626667 187.626666a117.845333 117.845333 0 0 0-0.106666 166.826667 118.037333 118.037333 0 0 0 166.826666-0.106667l255.850667-255.829333a21.333333 21.333333 0 0 0-30.165333-30.165333L435.136 669.973333a75.370667 75.370667 0 0 1-106.496 0.106667 75.178667 75.178667 0 0 1 0.128-106.496l187.605333-187.605333z" fill="#3D3D3D" p-id="2383"></path></svg>
                                    </i>
                                </ng-container>
                            </td>
                        </ng-container>
                        <ng-container *ngIf="!item.template&&!item.type">
                            <ng-container *ngIf="!item.customText">
                                <td [nzAlign]="item?.nzAlign" nzEllipsis [title]="item.type==='text'?(getDeepObj(data, item.prop)?getDeepObj(data, item.prop):''):''" [nzLeft]="item.nzLeft?true:false" [nzRight]="item.nzRight?true:false">
                                    <ng-container *ngIf="item.fontIcon">
                                        <i nz-icon [nzType]="item.fontIcon==true?'folder':item.fontIcon" nzTheme="fill" style="color:#f1ea7a; margin-right:2px"></i>
                                    </ng-container>
                                    <a (click)="jumpTo(data,item.prop)" appFontHover stopPropagation>{{ getDeepObj(data, item.prop) }}</a>
                                    <ng-container *ngIf="item.hasEnclosure&&data.EnclosureCount>0||item.isQJ&&data.Remark">
                                        <i nz-icon style="margin-left: 5px;font-weight: bold;cursor: pointer;" title="打开附件列表" (click)="openEnclo(data)" stopPropagation>
                                            <svg t="1661315776566" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2382" width="14" height="14"><path d="M516.373333 375.978667l136.576-136.576a147.797333 147.797333 0 0 1 208.853334-0.021334 147.690667 147.690667 0 0 1-0.042667 208.832l-204.8 204.778667v0.021333l-153.621333 153.6c-85.973333 85.973333-225.28 85.973333-311.253334 0.021334-85.994667-85.973333-85.973333-225.216 0.149334-311.36L431.146667 256.362667a21.333333 21.333333 0 0 0-30.165334-30.165334L162.069333 465.066667c-102.805333 102.826667-102.826667 269.056-0.149333 371.733333 102.613333 102.613333 268.970667 102.613333 371.584 0l153.6-153.642667h0.021333l0.021334-0.021333 204.778666-204.778667c74.325333-74.325333 74.346667-194.858667 0.021334-269.184-74.24-74.24-194.88-74.24-269.162667 0.042667l-136.576 136.554667-187.626667 187.626666a117.845333 117.845333 0 0 0-0.106666 166.826667 118.037333 118.037333 0 0 0 166.826666-0.106667l255.850667-255.829333a21.333333 21.333333 0 0 0-30.165333-30.165333L435.136 669.973333a75.370667 75.370667 0 0 1-106.496 0.106667 75.178667 75.178667 0 0 1 0.128-106.496l187.605333-187.605333z" fill="#3D3D3D" p-id="2383"></path></svg>
                                        </i>
                                    </ng-container>
                                </td>
                            </ng-container>
                            <!-- 自定义文本 -->
                            <ng-container *ngIf="item.customText">
                                <td [nzAlign]="item?.nzAlign" nzEllipsis [title]="item.customText" [nzLeft]="item.nzLeft?true:false" [nzRight]="item.nzRight?true:false">
                                    <a (click)="jumpTo(data,item.prop)" appFontHover stopPropagation>{{ item.customText }}</a>
                                </td>
                            </ng-container>
                        </ng-container>
                        <!-- <ng-container *ngIf="!item.template">
                            <td [nzAlign]="item?.nzAlign"><a (click)="jumpTo(data)" appFontHover>{{ data[item.prop] }}</a></td>
                        </ng-container> -->
                    </ng-container>

                    <!-- 新增预警适配 -->
                    <ng-container *ngIf="item.isLink && item.linkColor">
                        <ng-container *ngIf="item.type">
                            <td [nzAlign]="item?.nzAlign" nzEllipsis [title]="item.type==='text'?(getDeepObj(data, item.prop)?getDeepObj(data, item.prop):''):''" [nzLeft]="item.nzLeft?true:false" [nzRight]="item.nzRight?true:false">
                                <ng-container *ngIf="item.fontIcon">
                                    <i nz-icon nzType="alert" nzTheme="fill" style="color:red; margin-right:2px"></i>
                                </ng-container>
                                <a class="a_red" (click)="jumpTo(data,item.prop)" appFontHover stopPropagation>{{ getDeepObj(data, item.prop) | filter:[item.type,item?.dateFormat]}}</a>
                                <!-- <a [ngStyle]="{'color': item.linkColor}" (click)="jumpTo(data,item.prop)" appFontHover>{{ getDeepObj(data, item.prop) | filter:[item.type,item?.dateFormat]}}</a> -->
                                <ng-container *ngIf="item.hasEnclosure&&data.EnclosureCount>0||item.isQJ&&data.Remark">
                                    <i nz-icon style="margin-left: 5px;font-weight: bold;cursor: pointer;" title="打开附件列表" (click)="openEnclo(data)" stopPropagation>
                                        <svg t="1661315776566" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2382" width="14" height="14"><path d="M516.373333 375.978667l136.576-136.576a147.797333 147.797333 0 0 1 208.853334-0.021334 147.690667 147.690667 0 0 1-0.042667 208.832l-204.8 204.778667v0.021333l-153.621333 153.6c-85.973333 85.973333-225.28 85.973333-311.253334 0.021334-85.994667-85.973333-85.973333-225.216 0.149334-311.36L431.146667 256.362667a21.333333 21.333333 0 0 0-30.165334-30.165334L162.069333 465.066667c-102.805333 102.826667-102.826667 269.056-0.149333 371.733333 102.613333 102.613333 268.970667 102.613333 371.584 0l153.6-153.642667h0.021333l0.021334-0.021333 204.778666-204.778667c74.325333-74.325333 74.346667-194.858667 0.021334-269.184-74.24-74.24-194.88-74.24-269.162667 0.042667l-136.576 136.554667-187.626667 187.626666a117.845333 117.845333 0 0 0-0.106666 166.826667 118.037333 118.037333 0 0 0 166.826666-0.106667l255.850667-255.829333a21.333333 21.333333 0 0 0-30.165333-30.165333L435.136 669.973333a75.370667 75.370667 0 0 1-106.496 0.106667 75.178667 75.178667 0 0 1 0.128-106.496l187.605333-187.605333z" fill="#3D3D3D" p-id="2383"></path></svg>
                                    </i>
                                </ng-container>
                            </td>
                        </ng-container>
                    </ng-container>

                    <ng-container *ngIf="!item.isLink">
                        <ng-container *ngIf="item.template">
                            <ng-container *ngIf="item.template=='config'">
                                <ng-container *ngIf="item.isSelect">
                                    <td>
                                        <nz-select style="width: 100%;" [(ngModel)]="data[item.prop]" nzShowSearch nzAllowClear nzPlaceHolder="请选择" [nzOptions]="config[item?.configData]"
                                            (ngModelChange)="stopEdit(data.Guid)">
                                        </nz-select>
                                    </td>
                                </ng-container>
                                <ng-container *ngIf="!item.isSelect">
                                    <td [nzAlign]="item?.nzAlign" nzEllipsis [title]="item.type==='text'?(getDeepObj(data, item.prop)?getDeepObj(data, item.prop):''):''" [nzLeft]="item.nzLeft?true:false" [nzRight]="item.nzRight?true:false">
                                        {{ getDeepObj(data, item.prop) | enum:[item.template,config[item?.configData]]}}
                                        <ng-container *ngIf="item.hasEnclosure&&data.EnclosureCount>0||item.isQJ&&data.Remark">
                                            <i nz-icon style="margin-left: 5px;font-weight: bold;cursor: pointer;" title="打开附件列表" (click)="openEnclo(data)" stopPropagation>
                                                <svg t="1661315776566" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2382" width="14" height="14"><path d="M516.373333 375.978667l136.576-136.576a147.797333 147.797333 0 0 1 208.853334-0.021334 147.690667 147.690667 0 0 1-0.042667 208.832l-204.8 204.778667v0.021333l-153.621333 153.6c-85.973333 85.973333-225.28 85.973333-311.253334 0.021334-85.994667-85.973333-85.973333-225.216 0.149334-311.36L431.146667 256.362667a21.333333 21.333333 0 0 0-30.165334-30.165334L162.069333 465.066667c-102.805333 102.826667-102.826667 269.056-0.149333 371.733333 102.613333 102.613333 268.970667 102.613333 371.584 0l153.6-153.642667h0.021333l0.021334-0.021333 204.778666-204.778667c74.325333-74.325333 74.346667-194.858667 0.021334-269.184-74.24-74.24-194.88-74.24-269.162667 0.042667l-136.576 136.554667-187.626667 187.626666a117.845333 117.845333 0 0 0-0.106666 166.826667 118.037333 118.037333 0 0 0 166.826666-0.106667l255.850667-255.829333a21.333333 21.333333 0 0 0-30.165333-30.165333L435.136 669.973333a75.370667 75.370667 0 0 1-106.496 0.106667 75.178667 75.178667 0 0 1 0.128-106.496l187.605333-187.605333z" fill="#3D3D3D" p-id="2383"></path></svg>
                                            </i>
                                        </ng-container>
                                    </td>
                                </ng-container>
                            </ng-container>
                            <ng-container *ngIf="item.template!='config'">
                                <!-- <ng-container *ngIf="item.template=='custom'">
                                    <td [nzAlign]="item?.nzAlign" nzEllipsis [title]="item.type==='text'?customData(data):''" [nzLeft]="item.nzLeft?true:false" [nzRight]="item.nzRight?true:false">{{ CustomData(data,item.prop) }}</td>
                                </ng-container> -->
                                <!-- <ng-container *ngIf="item.template!='custom'"> -->
                                    <td [nzAlign]="item?.nzAlign" nzEllipsis [title]="item.type==='text'?(getDeepObj(data, item.prop)?getDeepObj(data, item.prop):''):''" [nzLeft]="item.nzLeft?true:false" [nzRight]="item.nzRight?true:false">
                                        {{ getDeepObj(data, item.prop) | enum:[item.template]}}
                                        <ng-container *ngIf="item.hasEnclosure&&data.EnclosureCount>0||item.isQJ&&data.Remark">
                                            <i nz-icon style="margin-left: 5px;font-weight: bold;cursor: pointer;" title="打开附件列表" (click)="openEnclo(data)" stopPropagation>
                                                <svg t="1661315776566" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2382" width="14" height="14"><path d="M516.373333 375.978667l136.576-136.576a147.797333 147.797333 0 0 1 208.853334-0.021334 147.690667 147.690667 0 0 1-0.042667 208.832l-204.8 204.778667v0.021333l-153.621333 153.6c-85.973333 85.973333-225.28 85.973333-311.253334 0.021334-85.994667-85.973333-85.973333-225.216 0.149334-311.36L431.146667 256.362667a21.333333 21.333333 0 0 0-30.165334-30.165334L162.069333 465.066667c-102.805333 102.826667-102.826667 269.056-0.149333 371.733333 102.613333 102.613333 268.970667 102.613333 371.584 0l153.6-153.642667h0.021333l0.021334-0.021333 204.778666-204.778667c74.325333-74.325333 74.346667-194.858667 0.021334-269.184-74.24-74.24-194.88-74.24-269.162667 0.042667l-136.576 136.554667-187.626667 187.626666a117.845333 117.845333 0 0 0-0.106666 166.826667 118.037333 118.037333 0 0 0 166.826666-0.106667l255.850667-255.829333a21.333333 21.333333 0 0 0-30.165333-30.165333L435.136 669.973333a75.370667 75.370667 0 0 1-106.496 0.106667 75.178667 75.178667 0 0 1 0.128-106.496l187.605333-187.605333z" fill="#3D3D3D" p-id="2383"></path></svg>
                                            </i>
                                        </ng-container>
                                    </td>
                                <!-- </ng-container> -->
                            </ng-container>
                        </ng-container>
                        <ng-container *ngIf="item.type">
                            <ng-container *ngIf="item.isEdit">
                                    <td [nzAlign]="item?.nzAlign" nzEllipsis>
                                        <div class="editable-cell" [hidden]="hidden(1,data,item)" (click)="startEdit($event,data,item.prop)" [title]="item.type==='text'?(getDeepObj(data, item.prop)?getDeepObj(data, item.prop):''):''" stopPropagation>
                                            {{ data[item.prop] | filter:[item.type,item?.dateFormat]}}
                                            <ng-container *ngIf="item.hasEnclosure&&data.EnclosureCount>0||item.isQJ&&data.Remark">
                                                <i nz-icon style="margin-left: 5px;font-weight: bold;cursor: pointer;" title="打开附件列表" (click)="openEnclo(data)" stopPropagation>
                                                    <svg t="1661315776566" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2382" width="14" height="14"><path d="M516.373333 375.978667l136.576-136.576a147.797333 147.797333 0 0 1 208.853334-0.021334 147.690667 147.690667 0 0 1-0.042667 208.832l-204.8 204.778667v0.021333l-153.621333 153.6c-85.973333 85.973333-225.28 85.973333-311.253334 0.021334-85.994667-85.973333-85.973333-225.216 0.149334-311.36L431.146667 256.362667a21.333333 21.333333 0 0 0-30.165334-30.165334L162.069333 465.066667c-102.805333 102.826667-102.826667 269.056-0.149333 371.733333 102.613333 102.613333 268.970667 102.613333 371.584 0l153.6-153.642667h0.021333l0.021334-0.021333 204.778666-204.778667c74.325333-74.325333 74.346667-194.858667 0.021334-269.184-74.24-74.24-194.88-74.24-269.162667 0.042667l-136.576 136.554667-187.626667 187.626666a117.845333 117.845333 0 0 0-0.106666 166.826667 118.037333 118.037333 0 0 0 166.826666-0.106667l255.850667-255.829333a21.333333 21.333333 0 0 0-30.165333-30.165333L435.136 669.973333a75.370667 75.370667 0 0 1-106.496 0.106667 75.178667 75.178667 0 0 1 0.128-106.496l187.605333-187.605333z" fill="#3D3D3D" p-id="2383"></path></svg>
                                                </i>
                                            </ng-container>
                                        </div>
                                        <nz-date-picker style="width: 100%;" *ngIf="item.isEdit==='date'||item.isEdit==='month';else noDate" [hidden]="hidden(2,data,item)" [(ngModel)]="data[item.prop]" [nzMode]="item.isEdit"></nz-date-picker>
                                        <ng-template #noDate>
                                            <input class="editable-input" [hidden]="hidden(2,data,item)" type="text" nz-input [(ngModel)]="data[item.prop]" (blur)="stopEdit(data.Guid,item.prop)" focus stopPropagation [LengthLimit]="item.editLen" [inputNumber]="IsNum(item.type)"/>
                                        </ng-template>
                                    </td>
                            </ng-container>
                            <ng-container *ngIf="!item.isEdit">
                                <td [nzAlign]="item?.nzAlign" nzEllipsis [title]="item.type==='text'?(getDeepObj(data, item.prop)?getDeepObj(data, item.prop):''):''" [nzLeft]="item.nzLeft?true:false" [nzRight]="item.nzRight?true:false">
                                    {{ getDeepObj(data, item.prop) | filter:[item.type,item?.dateFormat]}}
                                    <ng-container *ngIf="item.hasEnclosure&&data.EnclosureCount>0||item.isQJ&&data.Remark">
                                        <i nz-icon style="margin-left: 5px;font-weight: bold;cursor: pointer;" title="打开附件列表" (click)="openEnclo(data)" stopPropagation>
                                            <svg t="1661315776566" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2382" width="14" height="14"><path d="M516.373333 375.978667l136.576-136.576a147.797333 147.797333 0 0 1 208.853334-0.021334 147.690667 147.690667 0 0 1-0.042667 208.832l-204.8 204.778667v0.021333l-153.621333 153.6c-85.973333 85.973333-225.28 85.973333-311.253334 0.021334-85.994667-85.973333-85.973333-225.216 0.149334-311.36L431.146667 256.362667a21.333333 21.333333 0 0 0-30.165334-30.165334L162.069333 465.066667c-102.805333 102.826667-102.826667 269.056-0.149333 371.733333 102.613333 102.613333 268.970667 102.613333 371.584 0l153.6-153.642667h0.021333l0.021334-0.021333 204.778666-204.778667c74.325333-74.325333 74.346667-194.858667 0.021334-269.184-74.24-74.24-194.88-74.24-269.162667 0.042667l-136.576 136.554667-187.626667 187.626666a117.845333 117.845333 0 0 0-0.106666 166.826667 118.037333 118.037333 0 0 0 166.826666-0.106667l255.850667-255.829333a21.333333 21.333333 0 0 0-30.165333-30.165333L435.136 669.973333a75.370667 75.370667 0 0 1-106.496 0.106667 75.178667 75.178667 0 0 1 0.128-106.496l187.605333-187.605333z" fill="#3D3D3D" p-id="2383"></path></svg>
                                        </i>
                                    </ng-container>
                                </td>
                            </ng-container>
                        </ng-container>
                        <ng-container *ngIf="!item.template&&!item.type&&!item.tpl">
                            <ng-container *ngIf="item.isEdit">
                                <td [nzAlign]="item?.nzAlign" nzEllipsis>
                                    <div class="editable-cell" [hidden]="hidden(1,data,item)" (click)="startEdit($event,data,item.prop)" stopPropagation>
                                        {{ data[item.prop] }}
                                        <ng-container *ngIf="item.hasEnclosure&&data.EnclosureCount>0||item.isQJ&&data.Remark">
                                            <i nz-icon style="margin-left: 5px;font-weight: bold;cursor: pointer;" title="打开附件列表" (click)="openEnclo(data)" stopPropagation>
                                                <svg t="1661315776566" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2382" width="14" height="14"><path d="M516.373333 375.978667l136.576-136.576a147.797333 147.797333 0 0 1 208.853334-0.021334 147.690667 147.690667 0 0 1-0.042667 208.832l-204.8 204.778667v0.021333l-153.621333 153.6c-85.973333 85.973333-225.28 85.973333-311.253334 0.021334-85.994667-85.973333-85.973333-225.216 0.149334-311.36L431.146667 256.362667a21.333333 21.333333 0 0 0-30.165334-30.165334L162.069333 465.066667c-102.805333 102.826667-102.826667 269.056-0.149333 371.733333 102.613333 102.613333 268.970667 102.613333 371.584 0l153.6-153.642667h0.021333l0.021334-0.021333 204.778666-204.778667c74.325333-74.325333 74.346667-194.858667 0.021334-269.184-74.24-74.24-194.88-74.24-269.162667 0.042667l-136.576 136.554667-187.626667 187.626666a117.845333 117.845333 0 0 0-0.106666 166.826667 118.037333 118.037333 0 0 0 166.826666-0.106667l255.850667-255.829333a21.333333 21.333333 0 0 0-30.165333-30.165333L435.136 669.973333a75.370667 75.370667 0 0 1-106.496 0.106667 75.178667 75.178667 0 0 1 0.128-106.496l187.605333-187.605333z" fill="#3D3D3D" p-id="2383"></path></svg>
                                            </i>
                                        </ng-container>
                                    </div>
                                    <input class="editable-input" [hidden]="hidden(2,data,item)" type="text" nz-input [(ngModel)]="data[item.prop]" (blur)="stopEdit(data.Guid,item.prop)" focus stopPropagation [LengthLimit]="item.editLen" [inputNumber]="IsNum(item.type)"/>
                                </td>
                            </ng-container>
                            <ng-container *ngIf="!item.isEdit">
                                <td [nzAlign]="item?.nzAlign" nzEllipsis [title]="item.type==='text'?(getDeepObj(data, item.prop)?getDeepObj(data, item.prop):''):''" [nzLeft]="item.nzLeft?true:false" [nzRight]="item.nzRight?true:false">
                                    {{ getDeepObj(data, item.prop) }}
                                    <ng-container *ngIf="item.hasEnclosure&&data.EnclosureCount>0||item.isQJ&&data.Remark">
                                        <i nz-icon style="margin-left: 5px;font-weight: bold;cursor: pointer;" title="打开附件列表" (click)="openEnclo(data)" stopPropagation>
                                            <svg t="1661315776566" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2382" width="14" height="14"><path d="M516.373333 375.978667l136.576-136.576a147.797333 147.797333 0 0 1 208.853334-0.021334 147.690667 147.690667 0 0 1-0.042667 208.832l-204.8 204.778667v0.021333l-153.621333 153.6c-85.973333 85.973333-225.28 85.973333-311.253334 0.021334-85.994667-85.973333-85.973333-225.216 0.149334-311.36L431.146667 256.362667a21.333333 21.333333 0 0 0-30.165334-30.165334L162.069333 465.066667c-102.805333 102.826667-102.826667 269.056-0.149333 371.733333 102.613333 102.613333 268.970667 102.613333 371.584 0l153.6-153.642667h0.021333l0.021334-0.021333 204.778666-204.778667c74.325333-74.325333 74.346667-194.858667 0.021334-269.184-74.24-74.24-194.88-74.24-269.162667 0.042667l-136.576 136.554667-187.626667 187.626666a117.845333 117.845333 0 0 0-0.106666 166.826667 118.037333 118.037333 0 0 0 166.826666-0.106667l255.850667-255.829333a21.333333 21.333333 0 0 0-30.165333-30.165333L435.136 669.973333a75.370667 75.370667 0 0 1-106.496 0.106667 75.178667 75.178667 0 0 1 0.128-106.496l187.605333-187.605333z" fill="#3D3D3D" p-id="2383"></path></svg>
                                        </i>
                                    </ng-container>
                                </td>
                            </ng-container>
                        </ng-container>
                        <!-- <ng-container *ngIf="!item.template">
                            <td [nzAlign]="item?.nzAlign">{{ data[item.prop] }}</td>
                        </ng-container> -->
                        <ng-container *ngIf="item.tpl">
                            <td [nzAlign]="item?.nzAlign" nzEllipsis nzRight>
                                <ng-container *ngTemplateOutlet="item.tpl;context: {data:data,i:i}"></ng-container>
                            </td>
                        </ng-container>
                    </ng-container>
                </ng-container>
            </ng-container>
            <ng-container *ngIf="isHasAction&&isHasAction.length!==0">
                <td nzAlign="center" nzRight>
                    <ng-container *ngIf="isHasAction.indexOf('edit')!==-1">
                        <a appFontHover nz-button nzType="link" [nzSize]="small" (click)="editAction($event)")>
                            编辑
                        </a>
                    </ng-container>
                    <ng-container *ngIf="isHasAction.indexOf('delete')!==-1">
                        <a appFontHover nz-button nzType="link" [nzSize]="small" nz-popconfirm
                        nzPopconfirmTitle="是否删除这条数据？"
                        (nzOnConfirm)="deleteAction(data)"
                        (nzOnCancel)="cancel()"
                        >
                            删除
                        </a>
                    </ng-container>
                    <!-- 工程文件审核记录下载和打开 -->
                    <ng-container *ngIf="isHasAction.indexOf('downLoad')!==-1">
                        <a *ngIf="!data.BakGuid" style="margin:0 10px; color: #9195A3;cursor: default ;">下载</a>
                        <a *ngIf="data.BakGuid" (click)="op_a('downLoad', data)" style="margin:0 10px">下载</a>
                    </ng-container>
                    <ng-container *ngIf="isHasAction.indexOf('open')!==-1">
                        <a *ngIf="!data.BakGuid" style="margin:0 10px; color: #9195A3;cursor: default ;">打开</a>
                        <a *ngIf="data.BakGuid" (click)="op_a('open', data)" style="margin:0 10px">打开</a>
                    </ng-container>
                </td>
            </ng-container>
        </tr>
    </tbody>
    <tbody *ngIf="multiLevelHead">
        <tr *ngFor="let data of listData;let i=index">
            <ng-container *ngFor="let item of leafNodeColumn1;">
                <ng-container *ngIf="item.prop==='xh'">
                    <td nzAlign="center" nzLeft>{{ i + 1 }}</td>
                </ng-container>
                <ng-container *ngIf="item.prop!=='xh'">
                    <td [nzAlign]="item.nzAlign" [nzLeft]="item.nzLeft?true:false">{{ data[item.prop] }}</td>
                </ng-container>
            </ng-container>
        </tr>
    </tbody>
</nz-table>
<ng-template #totalTemplate let-total>共 {{ total }} 条</ng-template>

<nz-dropdown-menu #menu="nzDropdownMenu">
    <div class="checkbox-warp">
        <label nz-checkbox [(ngModel)]="filterAllChecked" (ngModelChange)="updateAllChecked()"
            [nzIndeterminate]="indeterminateFilter">
            全选
        </label>
        <div>
            <nz-checkbox-group [(ngModel)]="checkOptionsOne" (ngModelChange)="updateSingleChecked()">
            </nz-checkbox-group>
        </div>
    </div>
</nz-dropdown-menu>
